﻿import kliment.events.Event;

/**
 * ...
 * @author Kliment
 */
class kliment.events.ErrorEvent extends Event {
	public static var ERROR:String = "error";
	
	private var _code:String;
	
	public function ErrorEvent(type:String, target:Object, code:String) {
		super(type, target);
		_code = code;
	}
	
	public function get code():String { return _code; }
	
	public function toString():String {
		return "[ProgressEvent type=" + _type + " target=" + _target + " code = " + _code + "]";
	}
	
	public function clone():ErrorEvent {
		return new ErrorEvent(_type, _target, _code);
	}
	
}